package com.edu.neusoft.elec_shop.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.edu.neusoft.elec_shop.mapper.OrdersMapper;
import com.edu.neusoft.elec_shop.domain.Orders;
@Service
public class OrdersService{

    @Resource
    private OrdersMapper ordersMapper;

    //添加订单信息
    public int insert(Orders record) {return ordersMapper.insert(record);}

    //删除订单信息
    public int deleteOrderById(Long orderId) {return ordersMapper.deleteOrderById(orderId);}
}
